/*
 * @Author: 张仁会 28396543@qq.com
 * @Date: 2022-09-01 14:27:18
 * @LastEditors: 张仁会 28396543@qq.com
 * @LastEditTime: 2022-09-05 09:26:01
 * @FilePath: \store_system\src\router\index.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
let routes = [
    {
        path: "/",
        redirect: "/login",
        component: () => import("../view/login"),
        meta: { isNav: false, },
    },
    {
        path: "/login",
        name: "login",
        component: () => import("../view/login"),
        meta: { isNav: false, },
    },
    {
        path: "/home",
        name: "home",
        component: () => import("../view/home"),
        meta: { isNav: true, },
    },
]
export default routes
// export function navBar() {
//     return routes.filter((item => item.meta.isNav))[0].children
// }